using System;
using System.Collections.Generic;
using System.Windows.Forms;


namespace ListaFacil
{
    static class Program
    {
        public static ListaFacilDB database;
        public static string usuario;
        public static string senha;
        public static SLFControle SLF;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            frmLogin frmLoginDialog = new frmLogin();
            frmLoginDialog.ShowDialog();

            if (frmLoginDialog.DialogResult == DialogResult.OK)
            {
                usuario = frmLoginDialog.txtLogin.Text;
                senha = frmLoginDialog.txtSenha.Text;
                Application.Run(new mdiMain(usuario.ToUpper()));
            }
        }
    }
}